From 40f762589601de0fe1d5b06164b2553ebdbf5ecd Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Sat, 11 Jan 2025 09:27:46 +0700
Subject: <iman> update code

---
 src/pages/pengajuan-tempo/[status].jsx | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'src/pages/pengajuan-tempo/[status].jsx')

diff --git a/src/pages/pengajuan-tempo/[status].jsx b/src/pages/pengajuan-tempo/[status].jsx
index c97b5897..fa0a1749 100644
--- a/src/pages/pengajuan-tempo/[status].jsx
+++ b/src/pages/pengajuan-tempo/[status].jsx
@@ -8,9 +8,9 @@ import Seo from '@/core/components/Seo';
 import { getAuth } from '~/libs/auth';
 
 export async function getServerSideProps(context) {
-  const { tempo_id } = context.query;
+  const { status } = context.query;
   // await axios.post(
-  //   `${process.env.NEXT_PUBLIC_SELF_HOST}/api/pengajuan-tempo?formId=${tempo_id}`,
+  //   `${process.env.NEXT_PUBLIC_SELF_HOST}/api/pengajuan-tempo/${status}`,
   //   {},
   //   { headers: context.req.headers }
   // );
@@ -25,11 +25,6 @@ export default function Finish() {
     if (!auth) {
       const nextUrl = encodeURIComponent(router.asPath);
       router.push(`/login?next=${nextUrl}`);
-    } else if (
-      (router.query.status == 'approve' || router.query.status == 'review') &&
-      auth.tempoProgres === ''
-    ) {
-      router.push('/pengajuan-tempo');
     } else {
       setIsLoading(false);
     }
-- 
cgit v1.2.3

